/****************************************************************************
Copyright (c) 2023 Qualcomm Technologies International, Ltd.


FILE NAME
    upgrade_post_erase.h

DESCRIPTION
    Header file for the Upgrade Post Erase.
*/

#ifndef UPGRADE_POST_ERASE_H_
#define UPGRADE_POST_ERASE_H_


/*! @brief Message handler for upgrade_post_erase_process SM.

    @param id message id.
    @param message message data.

    @return is the message handled or not.
*/
void UpgradePostEraseHandleMessages(MessageId id, Message message);


/*! @Start the Post DFU Erase
    
    @param none
    @return TRUE if an asynchronous erase in foreground is started
*/
bool UpgradePostEraseStart(void);

/*! @Set the upgrade in post DFU erase state

    @param erase_in_progress set TRUE or FALSE
    @return None
*/
void UpgradePostEraseSetState(bool erase_in_progress);

/*! @Check if the upgrade is in post DFU erase state

    @param None
    @return TRUE if in progress or FALSE if not in progress
*/
bool UpgradePostEraseInProgress(void);


#endif /* UPGRADE_POST_ERASE_H_ */
